package css.sword.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * DFS_BASE_INFO
 * </p>
 *
 * @author wangke
 * @since 2018-09-22
 */
public class DfsBaseInfo extends Model<DfsBaseInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * MD5_VAL
     */
    @TableId("MD5_VAL")
    private String md5Val;

    /**
     * FILE_ID
     */
    @TableField("FILE_ID")
    private String fileId;

    /**
     * FILE_EXT
     */
    @TableField("FILE_EXT")
    private String fileExt;

    /**
     * FILE_SIZE
     */
    @TableField("FILE_SIZE")
    private Long fileSize;

    /**
     * FILE_DOWNLOAD_COUNT
     */
    @TableField("FILE_DOWNLOAD_COUNT")
    private Long fileDownloadCount;

    /**
     * GROUP_NAME
     */
    @TableField("GROUP_NAME")
    private String groupName;

    /**
     * RELATE_NUM
     */
    @TableField("RELATE_NUM")
    private Long relateNum;

    /**
     * 录入人代码
     */
    @TableField("LRR_DM")
    private String lrrDm;

    /**
     * 录入日期
     */
    @TableField("LRRQ")
    private LocalDateTime lrrq;

    /**
     * 修改人代码
     */
    @TableField("XGR_DM")
    private String xgrDm;

    /**
     * 修改日期
     */
    @TableField("XGRQ")
    private LocalDateTime xgrq;

    /**
     * ES提取文件生成的PATH
     */
    @TableField("ES_PATH")
    private String esPath;

    /**
     * 若文件为DOCX对应预览PDF的PATH
     */
    @TableField("PDF_PATH")
    private String pdfPath;

    /**
     * 预览量
     */
    @TableField("FILE_PREVIEW_COUNT")
    private Long filePreviewCount;

    /**
     * 转换DOCX后对应存储路径
     */
    @TableField("DOCX_PATH")
    private String docxPath;

    /**
     * 文件按BASE64编码后的对应路径||文件按BASE64编码后的对应路径
     */
    @TableField("BASE64_PATH")
    private String base64Path;

    @TableField("IS_WPS_SECURE")
    private String isWpsSecure;

    public String getMd5Val() {
        return md5Val;
    }

    public void setMd5Val(String md5Val) {
        this.md5Val = md5Val;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileExt() {
        return fileExt;
    }

    public void setFileExt(String fileExt) {
        this.fileExt = fileExt;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Long getFileDownloadCount() {
        return fileDownloadCount;
    }

    public void setFileDownloadCount(Long fileDownloadCount) {
        this.fileDownloadCount = fileDownloadCount;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Long getRelateNum() {
        return relateNum;
    }

    public void setRelateNum(Long relateNum) {
        this.relateNum = relateNum;
    }

    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    public LocalDateTime getLrrq() {
        return lrrq;
    }

    public void setLrrq(LocalDateTime lrrq) {
        this.lrrq = lrrq;
    }

    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    public LocalDateTime getXgrq() {
        return xgrq;
    }

    public void setXgrq(LocalDateTime xgrq) {
        this.xgrq = xgrq;
    }

    public String getEsPath() {
        return esPath;
    }

    public void setEsPath(String esPath) {
        this.esPath = esPath;
    }

    public String getPdfPath() {
        return pdfPath;
    }

    public void setPdfPath(String pdfPath) {
        this.pdfPath = pdfPath;
    }

    public Long getFilePreviewCount() {
        return filePreviewCount;
    }

    public void setFilePreviewCount(Long filePreviewCount) {
        this.filePreviewCount = filePreviewCount;
    }

    public String getDocxPath() {
        return docxPath;
    }

    public void setDocxPath(String docxPath) {
        this.docxPath = docxPath;
    }

    public String getBase64Path() {
        return base64Path;
    }

    public void setBase64Path(String base64Path) {
        this.base64Path = base64Path;
    }

    public String getIsWpsSecure() {
        return isWpsSecure;
    }

    public void setIsWpsSecure(String isWpsSecure) {
        this.isWpsSecure = isWpsSecure;
    }

    @Override
    protected Serializable pkVal() {
        return this.md5Val;
    }

    @Override
    public String toString() {
        return "DfsBaseInfo{" +
        "md5Val=" + md5Val +
        ", fileId=" + fileId +
        ", fileExt=" + fileExt +
        ", fileSize=" + fileSize +
        ", fileDownloadCount=" + fileDownloadCount +
        ", groupName=" + groupName +
        ", relateNum=" + relateNum +
        ", lrrDm=" + lrrDm +
        ", lrrq=" + lrrq +
        ", xgrDm=" + xgrDm +
        ", xgrq=" + xgrq +
        ", esPath=" + esPath +
        ", pdfPath=" + pdfPath +
        ", filePreviewCount=" + filePreviewCount +
        ", docxPath=" + docxPath +
        ", base64Path=" + base64Path +
        "}";
    }
}
